import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询用户列表
export function listRecipe(query) {
  return request({
    url: '/Recipe/getRevipeByPage',
    method: 'get',
    params: query
  })
}

// 新增用户
export function addVenue(data) {
  return request({
    url: '/Recipe/addRecipe',
    method: 'post',
    data: data,
    headers: {
         'Content-Type': 'multipart/form-data'
    }
  })
}

// 修改用户
export function updateVenue(data) {
  return request({
    url: '/Recipe/updateRecipe',
    method: 'put',
    data: data,
    headers: {
         'Content-Type': 'multipart/form-data'
    }
  })
}

// 用户状态修改
export function changeUserStatus(id, delFlag) {
  const data = {
    id,
    delFlag
  }
  return request({
    url: '/VenueManagement/changeUserStatus',
    method: 'put',
    data: data
  })
}
